package com.lbw.Server;


import com.lbw.Server.provider.ServiceProvider;
import com.lbw.Server.server.RpcServer;
import com.lbw.Server.server.impl.NettyRPCRPCServer;
import com.lbw.common.service.Impl.UserServiceImpl;
import com.lbw.common.service.UserService;

/**
 * @author lbwxxc
 * @date 2025/2/18 17:34
 * @description: TODO
 */
public class TestServer {

    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        ServiceProvider serviceProvider = new ServiceProvider("127.0.0.1", 9999);
        serviceProvider.provideServiceInterface(userService, true);
        RpcServer rpcServer = new NettyRPCRPCServer(serviceProvider);
        rpcServer.start(9999);
    }
}
